/**
 * Create by yz_wy_power on 2018/7/4
 */

/**
 * 一些全局配置
 */
import axios from 'axios'
import baseURL from './url'

axios.defaults.withCredentials = false;
// 设置post数据 提交格式
export default {
  post: (url, data = {}) => axios.post(url, data, {
    // baseURL: baseURL,
    headers: {
      'Content-Type': 'application/json',
    }
  })
};
